package homework4;

public class CalculatorDemo {
    public static void main(String[] args) {

        useCalculator(new Calculator() {
            @Override
            public String calc(String s) {
                return s;
            }
        });
        System.out.println(useCalculator(s -> s));
    }
    public static String useCalculator(Calculator cal){
        return cal.calc("s");
    }
}
